layui.use(['table' , 'form'], function() {
    form = layui.form;
    var table = layui.table;
    $(document).ready(function(){
        var error=$("#error").val();
        if (error!= ""){
            layer.msg(error, {time: 1000});
        }
    });
    function clickAdd(){
        layer.open({
            title : "注册用户",
            type : 2,
            area : ["700px","520px"],
            content : "/login/toRegister",
            end : function(){
                location.href=location.href;
            }
        })
    }
    $(".addLink_btn").click(function(){
        clickAdd();
    })
});